// 'use server'
'use server';
import { NextRequest, NextResponse } from 'next/server';
import pool from '../lib/db';
  export  async function GET(request:NextRequest){
const result = await  pool.query("SELECT * FROM vincty")
    const  data =result.rows
 
    // const resultdata= data.filter((obj)=>{obj.pay==="linwenyuan"})

//    const obj=    data.filter((datavalue:string)=>{datavalue.pay==="linwenyuan"})
return  NextResponse.json(data)


}



